package org.cable.account.service;

import org.cable.account.controller.request.AccountLoginRequest;
import org.cable.account.controller.request.AccountRegisterRequest;
import org.cable.account.model.AccountDO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.cable.common.util.JsonData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hsj
 * @since 2023-10-25
 */
public interface AccountService extends IService<AccountDO> {


    /**
     * 账户注册
     * @param request
     * @return
     */
    JsonData register(AccountRegisterRequest request);

    /**
     * 账户登录
     * @param request
     * @return
     */
    JsonData login(AccountLoginRequest request);


    /**
     * 根据手机号查找用户
     * @param phone
     * @return
     */
    AccountDO findByPhone(String phone);
}
